
/**
 * This class will create dialog boxes to appear between levels
 * 
 * @author      Ivan, Zachary
 * @version     0.01
 */

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DialogBox
{
    

    /**
     * Constructor for objects of class DialogBox
     */
    public DialogBox()
    {
    }

    /**
     * Creates a MessageDialog to display ReadMe's
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */
    public static void popUp(String filepath)
    {
       JFrame frame = new JFrame();
       ImageIcon image = new ImageIcon(filepath);
       JLabel label = new JLabel(image);
       JOptionPane.showMessageDialog(null, label, "ReadMe", JOptionPane.PLAIN_MESSAGE);
       
    }
}
